<?php
declare (strict_types=1);

namespace app\command;

use app\api\service\WechatService;
use app\api\service\WechatSubscribeService;
use app\model\PayRecord;
use think\console\Command;
use think\console\Input;
use think\console\Output;
use think\facade\Queue;

class WechatSubscribeSignTask extends Command
{
    protected function configure()
    {
        // 指令配置
        $this->setName('wechat-subscribe-task')
            ->setDescription('微信订阅模版签到消息推送任务');
    }

    protected function execute(Input $input, Output $output)
    {
        $data = [
            'type'  => WechatSubscribeService::TYPE_SIGN_REMIND,//类型
            'page' => "/pages/watching/watching",//跳转地址
        ];
        WechatSubscribeService::doSend($data);
    }
}
